﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using System.Drawing;

using DotSpatial.Topology;

using Point = System.Drawing.Point;

using FXnaInfrastructure;



namespace FXnaGis
{


    [Serializable]
    /// <summary>
    /// 用于表示等值线的或者同类线条的绘制中间信息保存
    /// 包括线条，标注，颜色等。
    /// 这个类以GIS为最底层，暂时不在其他地方服用
    /// </summary>
    public class FContourLine
    {

        public FContourLine(ContourLine line)
        {
            this._value = line.Value;

            this._color = line.LineColor;






 
        }



        double _value;

        public double Value
        {
            get { return _value; }
            set { _value = value; }
        }

        Color _color;

        public Color Color
        {
            get { return _color; }
            set { _color = value; }
        }



        /// <summary>
        /// 用于保存具体的线坐标
        /// </summary>
        private List<LineSegment> _lines = new List<LineSegment>();

        public  List<LineSegment> Lines
        {
            get { return _lines; }
           
        }




        List<LinearRing> _polys = new List<LinearRing>();

        /// <summary>
        /// 这里保存填充的区域与颜色
        /// </summary>
        public List<LinearRing> Polys
        {
            get {


               

             
          
                return _polys; 
            }

           
        }

        public void AddRing(LinearRing lr)
        {
            this._polys.Add(lr);
        }




        public void Add(LineSegment ls)
        {
            this._lines.Add(ls);
 
        }




    }
}
